<?php $this->beginContent('//layouts/main');
$current_url = $this->id.'/'.$this->action->id;
?>

<!--header-->
<div class="warpper">
      <div class="container">
            <div class="sideBar">
                  <h3>个人中心</h3>
                  <ul>
                        <li><a href="?r=pm/inbox" id='inbox' title="收信箱" class="cnav">收信箱</a></li>
                        <li><a href="?r=pm/outbox" id='outbox' title="发信箱" class="cnav">发信箱</a></li>
                  </ul>
                  <ul>
                        <li><a id='fav' href="?r=tags/index" title="标签管理" class="cnav">标签管理</a></li>
                        <li><a id='reject' href="?r=tags/index&type=1" title="排斥标签" class="cnav">排斥标签</a></li>
                  </ul>
                  <ul>
                        <li><a href="?r=pic/index" title="照片管理" class="cnav">照片管理</a></li>
                        <li><a href="?r=post/index" title="日志管理" class="cnav">日志管理</a></li>
                  </ul>
                  <ul>
                        <li><a href="?r=home/profile" title="个人介绍" class="cnav">个人介绍</a></li>
                        <li><a href="?r=home/intro" title="定义资料" class="cnav">定义资料</a></li>
                  </ul>
                  <ul>
                        <li><a href="?r=setting/base" title="基本资料" class="cnav">基本资料</a></li>
                        <li><a href="?r=setting/password" title="修改密码" class="cnav">修改密码</a></li>
                  </ul>
                  <ul>
                        <li><a href="?r=setting/index" title="设置" class="cnav">设置</a></li>
                  </ul>
            </div>
            
            <div class="content">
                 <?php echo $content; ?>
           </div>
     </div>
</div>
<?php $this->endContent(); ?>
<script type="text/javascript">
$(document).ready(function(){
      //设置当前导航菜单
      var controller = '<?php echo $this->id,"/",$this->action->id; ?>';
      $('.cnav').each(function(){
          if($(this).attr('href')=='?r='+controller){

            $(this).addClass('hover');
            <?php if($_GET['type']==1):?>

            $('.cnav').removeClass('hover');
            $('#reject').addClass('hover');
            <?php endif;?>

            
      }
});
      
})
</script>

